Skip to content

Keep Codex work off protected branches and document the GuardeX VS Code layout#25

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-181855-perzeus-megkapja-hu-guardex-vscode-image-and-main-preedit-detection
Apr 11, 2026
Merged

Keep Codex work off protected branches and document the GuardeX VS Code layout#25
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-181855-perzeus-megkapja-hu-guardex-vscode-image-and-main-preedit-detection

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

…de layout

This update adds a GuardeX pre-edit guard path in pre-commit so Codex sessions attempting to commit from protected branches are explicitly redirected to sandbox sub-branches via scripts/codex-agent.sh. It also makes unborn-branch detection stable so first-commit repos still behave correctly for non-Codex bootstrap commits.\n\nREADME now embeds the exact real VS Code Source Control screenshot and labels the layout with the GuardeX naming.

Constraint: User requires local preferred branch stability with Codex isolated to sub-branches

Constraint: Existing setup flow must remain compatible with fresh repos before first commit

Rejected: Rely on generic protected-branch error only | did not give Codex-specific GuardeX remediation path

Confidence: high

Scope-risk: moderate

Reversibility: clean

Directive: Keep templates/githooks/pre-commit and .githooks/pre-commit behavior in sync

Tested: npm test (48/48 pass); node --check bin/multiagent-safety.js

Not-tested: Remote PR merge path in GitHub UI
@NagyVikt NagyVikt force-pushed the agent/codex/20260411-181855-perzeus-megkapja-hu-guardex-vscode-image-and-main-preedit-detection branch from a5b4310 to 7fb7689 Compare April 11, 2026 16:33
@NagyVikt NagyVikt merged commit 71d8596 into main Apr 11, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260411-181855-perzeus-megkapja-hu-guardex-vscode-image-and-main-preedit-detection branch April 11, 2026 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant